<template>
  <div>
    <div class="content_v1">
      <div class="box_title_sy w296">
        <div class="box_pt1">
          <div class="b_title">企业动态</div>
          <div class="more" @click="changeNav(2)">更多》</div>
        </div>
        <div class="box_pt2">
          <div
            class="hang_hezuo_sy"
            v-for="(item, index) in qiyedongtaiList"
            :key="index"
             @click.stop="nativeTo(item, 'dongtai')"
          >
            <div class="tab_left shengluehao">
              <div class="iconfont icon-shuangyoujiantou"></div>
              <div class="shengluehao">{{ item.title }}</div>
            </div>
          </div>
        </div>
      </div>
      <div class="box_title_sy w690">
        <div class="box_pt1">
          <div class="b_title">公司介绍</div>
          <div class="more" @click="changeNav(1)">更多》</div>
        </div>
        <div class="box_pt2">
          <!-- <img src="@assets/img/1_06.jpg" alt="" class="f_left_img_c" /> -->
          <div v-html="qiyeJeshao" class="v_html_img"></div>
        </div>
      </div>
    </div>
    <div class="content_v1">
      <div class="box_title_sy w296">
        <div class="box_pt1">
          <div class="b_title">联系我们</div>
          <div class="more" @click="changeNav(6)">更多》</div>
        </div>
        <div class="box_pt2">
          <div class="hezuo_lianxi">
            <div class="first_h">
              <div class="tit">企业名称：</div>
              <div class="content_c">{{ qiyeInfoC.title }}</div>
            </div>
            <div class="p_h">
              <div class="tit">联系方式：</div>
              <div class="content_c">{{ qiyeInfoC.webdianhua }}</div>
            </div>
            <div class="p_h">
              <div class="tit">联系人：</div>
              <div class="content_c">{{ qiyeInfoC.xianxianren }}</div>
            </div>
            <div class="p_h">
              <div class="tit">邮政编码：</div>
              <div class="content_c">{{ qiyeInfoC.youzbma }}</div>
            </div>
            <div class="p_h">
              <div class="tit">联系地址：</div>
              <div class="content_c">{{ qiyeInfoC.address }}</div>
            </div>
          </div>
        </div>
      </div>
      <slot name="rongyu"></slot>
    </div>
    <div class="content_v1">
      <slot name="gongcheng"></slot>
    </div>
  </div>
</template>

<script>
export default {
  components: {},
  data() {
    return {
      httpp:"",
      rongyuListC:[],
      gongchengListC:[]
    };
  },
  props: ["qiyeInfo","qiyedongtaiList","qiyeJeshao"],
  computed: {
    positionText() {
      return this.sideNav[this.sideNavSel].title;
    },
    dataList9() {
      return this.dataList.slice(0, 5);
    },
    qiyeInfoC() {
      return this.qiyeInfo;
    },
  },
  mounted(){ 
    this.httpp = this.$httpp;
    
  },
  methods: {
    changeNav(num) {
      this.$emit("changeNav", num);
    },
    nativeTo(item, type) {
      console.log(item);
      if (type == "dongtai") {
        this.$router.push({ path: "/hezuo", query: { sel: 2, cid: item.id ,id:this.thisId,type:2 } });
        // this.$emit("changeNav",2)
      }
      if (type == "yeji") {
        this.$router.push({ path: "/hezuo", query: { sel: 3, cid: item.id,id:this.thisId,type:2 } });
        // this.$emit("changeNav",3)
      }
      if (type == "rongyu") {
        this.$router.push({ path: "/hezuo", query: { sel: 4, cid: item.id,id:this.thisId,type:2 } });
        // this.$emit("changeNav",4)
      }
      this.$getApi("/Common/itemxaingqi", { id: item.id }).then((res) => {
        console.log(res.data);
        this.detailInfo = res.data;
      });
    },
  },
};
</script>

<style scoped lang="stylus">
.content_v1 {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.w296 {
  width: 300px;
}

.w690 {
  width: 700px;
}

.w998 {
  width: 1013px;
}



.hezuo_lianxi {
  .tit {
    white-space: nowrap;
  }

  .first_h {
    color: #0965b0;
    font-weight: bold;
    line-height: 25px;
    display: flex;
  }

  .p_h {
    line-height: 25px;
    display: flex;
  }
}
</style>
